package com.study.common;

import com.study.enums.StateEnum;
import lombok.Data;

@Data
public class AjaxResult {
    private Integer code;
    private String msg;

    public AjaxResult(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public AjaxResult(StateEnum stateEnum){
        this.code=stateEnum.getCode();
        this.msg=stateEnum.getMsg();
    }
    public AjaxResult() {

    }
}
